package com.jic.manager.mapper;

import java.lang.Long;
import java.util.List;

import com.jic.manager.entity.MerchantWeBankContractFile;
import com.jic.manager.request.MerchantWeBankContractFileRequest;
import com.jic.manager.response.MerchantWeBankContractFileResponse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 商户合同附件表
 * @author : 
 * @email : 
 * @since : 2020-11-28 11:09:07
 * @version : v1.0.0
 */
@Repository
@Mapper
public interface  MerchantWeBankContractFileMapper {

    long insert(MerchantWeBankContractFile merchantWeBankContractFile);

    long delete(Long id);

    long update(MerchantWeBankContractFile merchantWeBankContractFile);

    MerchantWeBankContractFile queryByPrimaryKey(Long id);

    List<MerchantWeBankContractFile> query(MerchantWeBankContractFile merchantWeBankContractFile);

    List<MerchantWeBankContractFile> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("merchantWeBankContractFile") MerchantWeBankContractFile merchantWeBankContractFile);

    long queryPageCount(MerchantWeBankContractFile merchantWeBankContractFile);

    List<MerchantWeBankContractFileResponse> getListByContractId(MerchantWeBankContractFile merchantWeBankContractFile);

    long updateContractId(@Param("request") MerchantWeBankContractFileRequest request);
}